export default {
  namespaced: true,
  state: () => {
    return {
      shopName: uni.getStorageSync('shopName') || ''
    }
  },
  mutations: {
    setShopName(state, { shopName = '' }) {
      uni.setStorageSync('shopName', shopName);
      state.shopName = shopName
    }
  },
  actions: {}
}

/**
 * 
store/index.js中引入 import Food from '@/store/modules/Food.js' 并注册


vue页面使用

import { createNamespacedHelpers } from 'vuex'
const { mapMutations: FoodMapMutations } = createNamespacedHelpers('Food')
 */